/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_HOTKEY_H__
#define __LUA_HOTKEY_H__
#pragma once

#include "../Text/LuaLabel.h"

namespace DuiLib {

class LuaHotKey : public LuaLabel
{
    SDLUA_CLASS_DECLARE(LuaHotKey);

    void SetEnabled(bool bEnable);
    int SetText(LuaState *L);

    int GetNormalImage(LuaState *L);
    int SetNormalImage(LuaState *L);
    int GetHotImage(LuaState *L);
    int SetHotImage(LuaState *L);
    int GetFocusedImage(LuaState *L);
    int SetFocusedImage(LuaState *L);
    int GetDisabledImage(LuaState *L);
    int SetDisabledImage(LuaState *L);

    void SetNativeBkColor(DWORD dwBkColor);
    DWORD GetNativeBkColor();

    int SetPos(LuaState *L);
    void SetVisible(bool bVisible);
    void SetInternVisible(bool bVisible);
    int EstimateSize(LuaState *L);

    int GetHotKey(LuaState *L);
    void SetHotKey(WORD wVirtualKeyCode, WORD wModifiers);
};

}

#endif //__LUA_HOTKEY_H__